<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
    <title>在线充值—{$config["sitename"]|default=''}</title>
    <link rel="stylesheet" href="__ADDON__/css/member_v2.css?v={:config('app_version')}">
    <!--主体内容从上到上样式-->
    <link rel="stylesheet" href="__ADDON__/css/aniamte.css">
</head>

<body>
{include file="common/top" /}
<!-- 侧边栏 end -->

<!-- 主内容 -->
<div class="main">
    <div class="wrapper">
        <!--面包屑-->
        <div class="m-top">
            <ul class="breadcrumb">
                <li><a href="{:url('member/index/index')}">首页</a><span class="gt">&gt;</span><a href="{:url('member/index/index')}">个人管理</a><span class="gt">&gt;</span></li>
                <li>个人信息</li>
            </ul>
        </div>
        <!--面包屑 end-->

        <div class="container fadeInUp">
            <div class="box">
                <div class="tabs" id="tabs">
                    <ul class="tabs-title">
                        <li class="active"><a href="{:url('member/index/userinfo')}">个人信息</a></li>
                        <li><a href="{:url('member/index/pwd')}">修改密码</a></li>
                    </ul>
                    <div class="box-container ruanwen">
                        <div class="table">
                            <form id="form1" name="form1" method="post" action="" class="validform">
                                <table width="100%">
                                    <tbody>
                                    <tr>
                                        <td width="10%" class="right">账号</td>
                                        <td class="left">{$current_user.username}</td>
                                    </tr>
                                    <tr>
                                        <td width="10%" class="right">昵称</td>
                                        <td class="left">
                                            <input class="text" placeholder=" 请输入昵称" id="nickname" value="{$user.nickname|default=''}" name="nickname" maxlength="20" datatype="s2-20" nullmsg="请输入昵称" type="text" style="width:40%;" ><span class="Validform_checktip"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%" class="right">Email</td>
                                        <td class="left">
                                            <input class="text" placeholder=" Email" id="email" value="{$user.email|default=''}" name="email" datatype="e" nullmsg="请输入Email，用于找回、重置密码" type="text" style="width:40%;" ><span class="Validform_checktip"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%" class="right">手机</td>
                                        <td class="left">
                                            <input class="text" placeholder=" 手机号码" id="mobile" value="{$user.mobile|default=''}" name="mobile" maxlength="12" datatype="m" nullmsg="请输入手机号码，忘记密码找回需用" type="text" style="width:40%;" ><span class="Validform_checktip"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%" class="right">QQ</td>
                                        <td class="left">
                                            <input class="text" placeholder=" QQ" id="qq" value="{$user.qq|default=''}" name="qq" maxlength="12" type="text" style="width:40%;" ><span class="Validform_checktip"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%" class="right">性别</td>
                                        <td class="left">
                                            <input type="radio" id="sex0" value="0" name="sex" class="xingbie">
                                            <span>保密</span>
                                            <input type="radio" id="sex1" value="1" name="sex" class="xingbie">
                                            <span>男</span>
                                            <input type="radio" id="sex2" value="2" name="sex" checked="checked" class="xingbie">
                                            <span>女</span>
                                            <span class="Validform_checktip"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%" class="right">个人说明</td>
                                        <td>
                                            <textarea placeholder=" 个人说明" id="description" name="description" rows="5" cols="50" style="width:40%; height:120px;">{$user.description|default=''}</textarea>
                                            <span class="Validform_checktip"></span>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td  colspan="2"  class="left">
                                        <span class="menu" style="margin-left:10%; text-align:left;">
                                            <input value="确定" class="margin menu-org" type="submit" style="border-radius: 4px;color: #fff;font-size: 16px;height:39px;line-height: 39px;margin:0 0 0 10px;padding: 0 35px;" />
                                        </span>
                                        </td>
                                    </tr>
                                    </tbody>

                                </table>
                            </form>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
<script type="text/javascript">
    var menu="user";
    var submenu="userinfo"

    $(function () {
        $("input[name='sex']:eq({$user.sex})").attr("checked",'checked');

        $("#form1").Validform({
            tiptype:function(msg,o,cssctl){
                if(!o.obj.is("form")){
                    var objtip=o.obj.siblings(".Validform_checktip");
                    cssctl(objtip,o.type);
                    objtip.text(msg);
                }
            },
            ajaxPost:true,
            callback:function(data){
                layer.msg(data.msg, {
                    icon: 1
                }, function () {
                    if (data.code) {
                        window.location.href = data.url;
                    }
                });
            }
        });
    })
</script>
<!-- 主内容 end -->

<!-- 底部 -->
{include file="common/bottom" /}
</body>
</html>